<%@ page contentType="text/html;charset=utf-8" %>

<jsp:useBean id ="play" class="tom.jiafei.Play" scope="session" />

<%
	String webDir = request.getContextPath();
	webDir = webDir.substring(1);
	int imageNumber = 3;
%>

<jsp:setProperty name="play" property="webDir" value="<%= webDir %>" />
<jsp:setProperty name="play" property="imageNumber" value="<%= imageNumber%>" />

<html>
<head>
	<title>javaBean</title>
</head>
<body bgcolor="cyan"><font size="6">
	<%= play.getMax() %><hr>
	<image src="image/<jsp:getProperty name="play" property="playImage"/>" width=120 height=90>
	<br> 这是当前图片 </image>

	<form action="" method="post">
		<input type="submit" name="ok" value="上一张"></input>
		<input type="hidden" name="imageNumber" value="<%= play.getImageNumber()-1 %>"></input>
	</form>

	<form action="" method="post">
		<input type="submit" name="ok" value="下一张"></input>
		<input type="hidden" name="imageNumber" value=""<%= play.getImageNumber()+1 %>""></input>
	</form>

</font>
</body>
</html>